package bavaria.hightech.banking.account;

import java.math.BigInteger;
import java.util.Comparator;

import bavaria.hightech.banking.bank.Booking;

public class BookingAmountComparator implements Comparator<Booking> {

	@Override
	public int compare(Booking b1, Booking b2) {
		BigInteger amount1 = b1.getAmount().getBigInteger();
		BigInteger amount2 = b2.getAmount().getBigInteger();
		return amount1.compareTo(amount2);
	}
}
